<template>
  <div class="">
    <h2>搜索{{ title }}</h2>
    <ul>
      <li v-for="(item, index) in list2" :key="index">{{ item.title }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      title: this.$route.query.title,
      list2: [
        {
          title: "lol之夜rng牛掰",
        },
        {
          title: "lol之夜dk low爆了",
        },
        {
          title: "lol之夜 中国no1",
        },
        {
          title: "微博之夜 中国no1",
        },
      ],
    };
  },
  mounted() {
    this.list2 = this.list2.filter((item) => {
      return item.title.includes(this.title);
    });
  },
  methods: {},
  components: {},
};
</script>

<style lang="scss"></style>
